function ScsPocConstants() {
}

ScsPocConstants.checkdev = false;
ScsPocConstants.checkdev_type = 0;
//0，代表禁言，1,代表解除禁言
ScsPocConstants.isSilenced_One  = "1";
ScsPocConstants.isSilenced_Zero = "0";

//0，代表静音，1,代表解除静音
ScsPocConstants.isMute_One      = "1";
ScsPocConstants.isMute_Zero     = "0";

ScsPocConstants.supportLoc      = true;
ScsPocConstants.supportVss      = true;
ScsPocConstants.supportMm       = false;

//是否支持DAS功能，默认支持
ScsPocConstants.supportDas      = "true";
//服务器中支持DAS，1代表支持。
ScsPocConstants.supportDas_yes  = "1";

ScsPocConstants.singleScreen    = 1;
ScsPocConstants.dualScreen      = 2;
ScsPocConstants.threeScreen     = 3;

ScsPocConstants.supportMultiscreen  = false;

ScsPocConstants.supportWs =  "true";
ScsPocConstants.supportFs      = "false";
ScsPocConstants.fsConnected    = "false";

export { ScsPocConstants }

function MediaConstants() {
}

MediaConstants.STATUS_PLAY        = "Play";
MediaConstants.STATUS_PULL_UP     = "PullUp";
MediaConstants.STATUE_SHARE       = 'share';
MediaConstants.LOCATION_PAGE      = "location";
MediaConstants.VIDEO_PAGE         = "video";
MediaConstants.STATUS_INVALID     = 0;
//system type id
MediaConstants.SYSTEM_TYPE_ANALOG  ="100";
MediaConstants.SYSTEM_TYPE_HYTERA_DMR  ="101";
MediaConstants.SYSTEM_TYPE_ZTEGOTA  ="102";
MediaConstants.SYSTEM_TYPE_QUALCOMMQchat  ="103";
MediaConstants.SYSTEM_TYPE_IPSOTSWITCHING  ="104";
MediaConstants.SYSTEM_TYPE_HYTERAPDT  ="105";
MediaConstants.SYSTEM_TYPE_ZTEPDT  ="106";
MediaConstants.SYSTEM_TYPE_ZTEMCPTT  ="107";
MediaConstants.SYSTEM_TYPE_PTTPLUS  ="108";

MediaConstants.MAP_UTYPE={
  0:'无效类型', 1:'终端', 2:'群组',
  3:'调度台', 5:'摄像头', 6:'临时组呼',
  10:'VOIP', 11:'SPC_CAMERA', 12:'CAR',
  13:'MOTO', 14:'TOOLS', 20:'SIPTERMINAL',
  21:'DMR网关'
};
MediaConstants.MAP_TYPE={
  100:'ANALOG', 101:'DMR', 102:'ZTEGOTA',
  103:'QUALCOMMQchat', 104:'IP', 105:'HYTERAPDT',
  106:'ZTEPDT', 107:'ZTEMCPTT', 108:'POC'
};
//systemId对应的中文
MediaConstants.SYSTEM_TYPE_ANALOG_ZC  ="模拟对讲系统";
MediaConstants.SYSTEM_TYPE_HYTERA_DMR_ZC  ="Hytera DMR系统";
MediaConstants.SYSTEM_TYPE_ZTEGOTA_ZC ="ZTE GoTa系统";
MediaConstants.SYSTEM_TYPE_QUALCOMMQchat_ZC  ="Qualcomm Qchat系统";
MediaConstants.SYSTEM_TYPE_IPSOTSWITCHING_ZC  ="IP软交换系统";
MediaConstants.SYSTEM_TYPE_HYTERAPDT_ZC  ="Hytera PDT系统";
MediaConstants.SYSTEM_TYPE_ZTEPDT_ZC  ="ZTE PDT系统";
MediaConstants.SYSTEM_TYPE_ZTEMCPTT_ZC  ="ZTE MCPTT系统";
MediaConstants.SYSTEM_TYPE_PTTPLUS_ZC  ="POC系统";


MediaConstants.STATUE_ONLINE     = 'online';
MediaConstants.STATUE_OFFLINE    = 'offline';
MediaConstants.STATUE_UP         = 'up';
MediaConstants.STATUE_DOWN       = 'down';
MediaConstants.STATUS_PTT        = 'ptt';
MediaConstants.STATUS_UPANDPTT   = 'up&ptt';
MediaConstants.STATUS_DOWNANDPTT = 'down&ptt';

MediaConstants.CAMERA_NUM_ZERO  = 0;  //摄像头监控窗数量

MediaConstants.AUDIO_TYPE       = 1;  //语音类型
MediaConstants.VIDEO_TYPE       = 0;  //视频类型
MediaConstants.VOIP_TYPE        = 2; //VOIP实时视频

MediaConstants.EVENT_RECEIVETIMEOUT = "receiveTimeout";     //控件sipEvent上报接收sip超时事件
MediaConstants.EVENT_SETUPTIMEOUT   = "setupTimeout";		//控件sipEvent上报建立sip超时事件
MediaConstants.EVENT_TRYING			= "trying";				//控件sipEvent上报180trying事件
MediaConstants.EVENT_OK             = "ok";					//控件sipEvent上报ok事件
MediaConstants.EVENT_READY          = "ready";				//控件sipEvent上报ready事件
MediaConstants.EVENT_ANSWERED       = "answered";			//控件sipEvent上报answered事件
MediaConstants.EVENT_BYE			= "bye";				//控件sipEvent上报bye事件
MediaConstants.EVENT_DELRING		= "delRing";			//控件sipEvent上报delRing事件
MediaConstants.EVENT_CANCEL			= "cancel";   			//控件sipEvent上报cancel事件
MediaConstants.EVENT_EXCEPTION		= "exception";			//控件sipEvent上报exception事件
MediaConstants.EVENT_CONFLICT		= "conflict";			//控件sipEvent上报conflict事件
MediaConstants.EVENT_REJECT		    = "reject";			    //控件sipEvent上报reject事件
MediaConstants.EVENT_OFFLINE		= "offline";			//控件sipEvent上报离线事件
MediaConstants.EVENT_TIMEOUT        = "timeout";            //控件sipEvent上报视频源无响应

/*成员类型*/
MediaConstants.UTYPE_INVALID      = 0;
MediaConstants.UTYPE_UE           = 1;
MediaConstants.UTYPE_GROUP        = 2;
MediaConstants.UTYPE_DISCONSOLE   = 3;
//MediaConstants.UTYPE_GROUP      = 4; //有问题，和2重复，导致调试出bug       临时群组
//MediaConstants.UTYPE_DISPATCHER = 5;
// MediaConstants.UTYPE_TEMPGROUP    = 6;
MediaConstants.UTYPE_IPC_CAMERA   = 5;
MediaConstants.UTYPE_IPC_GB28181_CAMERA   = 6;
MediaConstants.UTYPE_VOIP         =10;               //海事新添加类型，VOIP，暂时车台包括在内
MediaConstants.UTYPE_UE_VOIP      =10;               //海事新添加类型，VOIP，暂时车台包括在内
MediaConstants.UTYPE_SPC_CAMERA   = 11;
MediaConstants.UTYPE_CAR          = 12;
MediaConstants.UTYPE_MOTO         = 13;
MediaConstants.UTYPE_TOOLS        = 14;
MediaConstants.UTYPE_SIPTERMINAL  = 20;
MediaConstants.UTYPE_DMRNETEQUIP  = 21;   //dmr网关


MediaConstants.SUBTYPE_DEFAULT_IPC 				= 0;
MediaConstants.SUBTYPE_SERVER_SDK_IPC_NETVIEW	= 1;  //在Server以SDK接入的力维摄像头
MediaConstants.SUBTYPE_SERVER_GB_IPC    		= 2;  //在Server以国标GB28181接入的摄像头
MediaConstants.SUBTYPE_DAC_SDK_IPC_NC    		= 10; //在DAC以SDK接入的布控球摄像头
MediaConstants.SUBTYPE_SERVER_GB_IPC_NC    		= 11; //在Server以GB28181接入的布控球摄像头
MediaConstants.SUBTYPE_SERVER_GB_IPC_UAC    	= 12; //在Server以GB28181接入的无人机
MediaConstants.SUBTYPE_DAC_SDK_IPC_INFRARED    	= 13; //在DAC以SDK接入的红外摄像头

MediaConstants.HAS_CAPABILITIES    	= 1; //终端能力（有）
MediaConstants.NO_CAPABILITIES    	= 0; //终端能力（无）

MediaConstants.CAP_LOC    	= 0; //终端能力（定位）
MediaConstants.CAP_VID    	= 1; //终端能力（视频）
MediaConstants.CAP_VOI    	= 2; //终端能力（语音）
MediaConstants.CAP_MSS    	= 3; //终端能力（短消息）
MediaConstants.CAP_IPVOI    	= 4; //终端能力（ip语音）
MediaConstants.CAP_IPVID    	= 5; //终端能力（ip视频）
MediaConstants.DEFAULT_CAP  =63;

MediaConstants.LICENSE_ATTENDANCE    = 0; //LICENSE功能列表（是否开启考勤）

MediaConstants.CAP_LOC_ERR    	="该终端不具备定位的能力" ; //终端能力（定位）
MediaConstants.CAP_VID_ERR    	="该终端不具备视频的能力" ; //终端能力（视频）
MediaConstants.CAP_VOI_ERR    	="该终端不具备语音的能力"; //终端能力（语音）
MediaConstants.CAP_MSS_ERR    	="该终端不具备短消息的能力"; //终端能力（短消息）
MediaConstants.CAP_IPVID_ERR    	="该终端不具备IP视频的能力" ; //终端能力（ip视频）
MediaConstants.CAP_IPVOI_ERR    	="该终端不具备IP语音的能力"; //终端能力（ip语音）


MediaConstants.STATUS_POC_BIT_ONLINE    =0; //终端POC在线状态
MediaConstants.STATUS_POC_BIT_REPORT    =1; //终端POC上报开关状态
MediaConstants.STATUS_POC_COMMAND_REPORT    =1; //下发指令终端POC上报开关打开
MediaConstants.STATUS_POC_COMMAND_REPORT_CLOSE    =0; //下发指令终端POC上报开关关闭

MediaConstants.STATUS_POC_CLOSE_REPORT  =0; //终端POC上报开关状态


/**
 * 树常量命名空间*
 */
function ScsTreeConstant() {
}

ScsTreeConstant.ADDRTYPE_UE          = "1";
ScsTreeConstant.ADDRTYPE_GROUP       = "2";
ScsTreeConstant.ADDRTYPE_GROUPMEMBER = "3";
ScsTreeConstant.ADDRTYPE_DISPATCHER  = "4";
ScsTreeConstant.ADDRTYPE_IPC_CAMERA  = "5";
ScsTreeConstant.ADDRTYPE_IPC_GB28181  = "6";
ScsTreeConstant.ADDRTYPE_UE_VOIP  = "10";
ScsTreeConstant.ADDRTYPE_VOIP  = "10";      //海事
ScsTreeConstant.ADDRTYPE_SPC_CAMERA  = "11";
ScsTreeConstant.ADDRTYPE_CAR         = "12";
ScsTreeConstant.ADDRTYPE_MOTO        = "13";

ScsTreeConstant.NODE_TYPE_ROOT       = "0";
ScsTreeConstant.NODE_TYPE_DEVICES    = "1"; //包括UE，汽车、机车、IPC、SPC等设备

ScsTreeConstant.STATUS_ONLINE    	 = "1";
ScsTreeConstant.STATUS_UPLOAD    	 = "3";

ScsTreeConstant.OPER_TYPE_LOCATION   = "1";
ScsTreeConstant.OPER_TYPE_PULLUP     = "2";
ScsTreeConstant.OPER_TYPE_DETAIL     = "3";
ScsTreeConstant.OPER_TYPE_MESSAGE    = "4";
ScsTreeConstant.OPER_TYPE_VOICE    = "5";

ScsTreeConstant.SUBTYPE_DEFAULT_IPC 			= "0";
ScsTreeConstant.SUBTYPE_SERVER_SDK_IPC_NETVIEW	= "1";  //在Server以SDK接入的力维摄像头
ScsTreeConstant.SUBTYPE_SERVER_GB_IPC    		= "2";  //在Server以国标GB28181接入的摄像头
ScsTreeConstant.SUBTYPE_DAC_SDK_IPC_NC    		= "10"; //在DAC以SDK接入的布控球摄像头
ScsTreeConstant.SUBTYPE_SERVER_GB_IPC_NC    	= "11"; //在Server以GB28181接入的布控球摄像头
ScsTreeConstant.SUBTYPE_SERVER_GB_IPC_UAC    	= "12"; //在Server以GB28181接入的无人机
ScsTreeConstant.SUBTYPE_DAC_SDK_IPC_INFRARED    = "13"; //在DAC以SDK接入的红外摄像头
ScsTreeConstant.GROUP_MAX_OPERATE_CHILDREN      =100;

/**
 * 地图中的常量
 */
function ScsMapConstant() {
};
ScsMapConstant.videofull = 0;
// ScsMapConstant.mapType = ScsMapConstantTemp.mapType;

// ScsMapConstant.CITY_LNG_LAT = new cityLngAndLat();

ScsMapConstant.locationRate = 30;        //定位频率默认设置成30s
ScsMapConstant.timeLength   = 24*60*60; //定位时长设置成24小时，单位秒
ScsMapConstant.userId = '';

ScsMapConstant.viewportOptions = {
  enableAnimation : true, //当调整前后地图级别相同时是否使用动画效果移动地图，默认为true
  margins         : [40, 40, 40, 40], //调整视野的预留边距，防止“显示全部”时位置点一部分显示在地图外部
  zoomFactor      : 0, //设置地图级别的偏移量，默认值为0，即在调整后实际级别的基础上加上zoomFactor值
  delay           : 200  //改变地图视野的延迟时间，单位为毫秒，默认200ms
};

function ScsGpsConvert() {
};

//坐标转换中的常量
ScsGpsConvert.x_PI = 3.14159265358979324 * 3000.0 / 180.0;
ScsGpsConvert.PI   = 3.1415926535897932384626;
ScsGpsConvert.a    = 6378245.0;
ScsGpsConvert.ee   = 0.00669342162296594323;

/**
 * 云台控制的常量
 */
function ScsDeviceConstant() {
};

ScsDeviceConstant.isPtzCap    = '1';            //表示具有云台控制能力
ScsDeviceConstant.stopType    = '0';            //结束指令
ScsDeviceConstant.tiltType    = '1';			//垂直移动指令
ScsDeviceConstant.panType     = '2';			//水平移动指令
ScsDeviceConstant.tiltpanType = '3';			//水平垂直组合指令
ScsDeviceConstant.zoomType    = '4';            //镜头调焦指令
ScsDeviceConstant.focusType   = '8';			//镜头聚焦指令
ScsDeviceConstant.irisType    = '16';			//镜头光圈指令
ScsDeviceConstant.cruiseType  = '32';           //巡航指令
ScsDeviceConstant.presetType  = '64';        	//预置位指令
ScsDeviceConstant.scanType    = '128';			//扫描指令

ScsDeviceConstant.tiltUp      = '0';			//摄像头向上移动操作类型
ScsDeviceConstant.tiltDown    = '1';            //摄像头向下移动操作类型

ScsDeviceConstant.panLeft     = '0';			//摄像头向左移动类型
ScsDeviceConstant.panRight    = '1';			//摄像头向右移动类型

ScsDeviceConstant.zoomIn      = '0';			//镜头调焦变小
ScsDeviceConstant.zoomOut     = '1';			//镜头调焦变大

ScsDeviceConstant.focusIn     = '0';			//镜头聚焦变小
ScsDeviceConstant.focusOut    = '1';			//镜头聚焦变大

ScsDeviceConstant.irisIn      = '0';			//光圈变暗
ScsDeviceConstant.irisOut     = '1';			//光圈变亮

ScsDeviceConstant.scanStart   = '1';			//扫描开始
ScsDeviceConstant.scanGroupId = '0';			//扫描组号默认

/**
 * 键码值 keyCode
 */
function BrowserKeyCode() {
};

BrowserKeyCode.KeyCodeF1        = 112;
BrowserKeyCode.KeyCodeF3        = 114;
BrowserKeyCode.KeyCodeF5        = 116;
BrowserKeyCode.KeyCodeF7        = 118;
BrowserKeyCode.KeyCodeF10       = 121;
BrowserKeyCode.KeyCodeF11       = 122;
BrowserKeyCode.KeyCodeF12       = 123;

BrowserKeyCode.KeyCodeBackSpace = 8;
BrowserKeyCode.KeyCodeTab       = 9;
BrowserKeyCode.KeyCodeEnter     = 13;
BrowserKeyCode.KeyCodeEscape    = 27;
BrowserKeyCode.KeyCodespace     = 32;
BrowserKeyCode.KeyCodeHome      = 36;
BrowserKeyCode.KeyCodeLeft      = 37;
BrowserKeyCode.KeyCodeRight     = 39;

BrowserKeyCode.KeyCodeAa        = 65;
BrowserKeyCode.KeyCodeBb        = 66;
BrowserKeyCode.KeyCodeEe        = 69;
BrowserKeyCode.KeyCodeFf        = 70;
BrowserKeyCode.KeyCodeGg        = 71;
BrowserKeyCode.KeyCodeHh        = 72;
BrowserKeyCode.KeyCodeIi        = 73;
BrowserKeyCode.KeyCodeNn        = 78;
BrowserKeyCode.KeyCodeRr        = 82;
BrowserKeyCode.KeyCodeSs        = 83;
BrowserKeyCode.KeyCodeUu        = 85;
BrowserKeyCode.KeyCodeWw        = 87;


/**
 * 多屏信息
 */
function MonitorDisplayInfo(displayNum, monitorInfo, widthArray, heightArray) {
  this.displayNum   = displayNum;

  this.monitorInfo  = monitorInfo;
  this.widthArray   = widthArray;
  this.heightArray  = heightArray;
}
/**
 * 语音界面以及视频窗口/地图控件等列表（原）
 */
function VOICE() {}
